import assessCheckApi from './api'
import { axios } from '@/utils/request'

export function dict(val) {
  return axios({
    url: assessCheckApi.dict,
    params: {dictName:val},
    method: "GET",
    url_1:'outside'
  })
}

// 单位库-删除
export function deleteDwk(params){
  return axios({
    url: assessCheckApi.deleteDwk,
    method:'delete',
    params:{...params},
    url_1:'outside',
  })
}

// 单位库-添加
export function addDwk(data){
  return axios({
    url: assessCheckApi.addDwk,
    method:'post',
    data:{...data},
    url_1:'outside',
  })
}

// 单位库-编辑
export function editDwk(data){
  return axios({
    url: assessCheckApi.editDwk,
    method:'put',
    data:{...data},
    url_1:'outside',
  })
}
